package com.springboot.service.impl;

import com.springboot.dao.UserInfoMapper;
import com.springboot.entity.UserInfoEntity;
import com.springboot.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userInfoService")
public class UserInfoServiceImpl implements UserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public List<UserInfoEntity> selectList() {
        return userInfoMapper.selectList();
    }

    @Override
    public UserInfoEntity selectOne(String id) {
        return userInfoMapper.selectOne(id);
    }

    @Override
    public void updateUserInfo(Integer timestamp, String id) {
        userInfoMapper.updateUserInfo(timestamp, id);
    }
}
